Dynomotion

Group: DynoMotion Message: 7841 From: tig415 Date: 7/2/2013
Subject: Homing Mach without switches.
Hi
Right now I have mach set up without home switches. I jog each axis to a visual mark and then click on the reference axis button for each axis. I have the inputs set so that it thinks it has an input as soon as you click reference so there is no movement in the axis. It then uses whatever data that's in the Homing settings. This allows me to use soft limits.

Is there a homing C program that would accomplish this and allow mw to have soft limits?

Thanks
Derek
Group: DynoMotion Message: 7847 From: Tom Kerekes Date: 7/3/2013
Subject: Re: Homing Mach without switches.
Hi Derek,

I'm guessing that you are describing how things worked before using KFLOP?

Yes you should be able to do that.  There is no need to have fake home switches.  Just have your Home C Code set the current position with something like:  

#define XSTEPS_PER_INCH 10000.0
EnableAxisDest(0,1.0 * XSTEPS_PER_INCH);  // set the current Machine coordinate position to 1 inch

You can also set the KFLOP Soft Limits at the same time with something like:

ch0->SoftLimitPos=12.0 * XSTEPS_PER_INCH;
ch0->SoftLimitNeg=0.5 * XSTEPS_PER_INCH;

KFLOP should feedhold whenever violating the SoftLimits

HTH
Regards
TK